edit python template file