Cleaned up some style for PEP 8. Next up is changing DB to flask-pymongodb.