modified python scripts