Flask Troubleshooting

Fixed encoding trouble
Downgraded Flask to py2.* for good libs perfomance