Cleaning up pylint and pep8 errors.
Merge pull request #5429 from edx/dcs/mobile-delint

Cleaning up pylint and pep8 errors in mobile API.