Reordered checks so pep8 is first