Fix for flask 0.10