PEP8 fixes in the api app.