pep8 and pyflakes applied

I didn't do anything with line length yet.
aha, ok. I didn't understand that part. I'll remove it.