PEP8 fixes, remove unused imports

I'll use this mini-pull-request to draw your attention to [PEP8](http://legacy.python.org/dev/peps/pep-0008/), which I'd encourage you to adopt.

-Andreas