Better content-negotiation for flask.