cleaned up the pythonTemplate