Obey PEP8 (except for E501)

This commit fixes violations of PEP8, except for E501 "line too long"