pep8 fixes
Merge pull request #5629 from edx/cdodge/touchups-on-auto-registration

pep8 fixes