PEP8 style fixes for diagnose.py