modified python template