Make it work with slightly older flask