Updated the api app to conform to PEP8.