Fix tests to pass gates

Only python2.7 tests were passing. This will fix all tests for
python2.6, python3.3, and pep8.

Change-Id: I067d4194774d7e2cf2970c49febe52643d7ac21d