modified python format