Run autopep8 on misc.py

In-place run of the standard tool. Ref #662
PEP8 for the whole interface

Fixed all errors. #622