change py template to my convenience