Cleaning up pylint and pep8 errors in mobile API.

@ormsbee @jzoldak 

Wow, that's disturbing. Okay.