changed the py template file