Fixed flake8 complaints.

Pulled the flake8 related fixes out of https://github.com/SoCo/SoCo/pull/104

Closes #104