CherryPy custom tool for content negotiation