pep8 fix
Merge pull request #5630 from edx/cdodge/touchups-on-auto-registration

pep8 fix