Python fixes found by PEP8/flake