Fixes flask imports
Use the correct key to get the file name
Add gunicorn into the mix
Adds some statistics