[python/en] Modify python to be pep8 compliant

This mostly adds spaces.

Fixes #568