Update app.py

Imported a library needed,fixed some mistakes.