PEP8-ify most of the files

consumer.py and conn.py will be done later after pending merges