reorganizing python scripts