Remove the requirement of flask version < 0.9