Cleaning up pylint and pep8 errors in mobile API.

@ormsbee @jzoldak 

This doesn't change behavior?