Fixing test_gae.py and adding pep 8 corrections