Python scripts: PEP8 fixes