Cosmetic changes to python scripts