Update mistakes in app.py
Update mistakes in app.py

This corrects an improper import and sets the logging handler at the proper
point to get the logs formatted correctly.

ksuarz/shrunk,oss/shrunk,oss/shrunk,oss/shrunk,oss/shrunk,ksuarz/shrunk,oss/shrunk,ksuarz/shrunk,ksuarz/shrunk