Updated to new flask version