Fixed python scripts