Cleaning up pylint and pep8 errors in mobile API.

@ormsbee @jzoldak