pep8 fixes

used pycharm to find all pep8 issues in the code and fixed them.

please run the tests, I had troubles doing so, it somehow doesn't find the Python.h it needs for netifaces compile although I have python-dev and python3-dev installed...