Fix Python scripts to be PEP-8 compatible.

Fixes #24