flask upgrade