Python 3 / flask changes