Fix PEP8 coding style violations

`pep8 *.py --ignore=E501` gives no output anymore.

TODO: Fix long lines

As part of http://24pullrequests.com
It is very common idiom in scientific software, unfortunately. Most scientists do not realize that hypot() even exists, or why they should use it.