Fix PEP8 coding style violations

`pep8 *.py --ignore=E501` gives no output anymore.

TODO: Fix long lines

As part of http://24pullrequests.com
sigh... why do people type this instead of "math.hypot(x, y)"? Never understood that...