Route requests based on the Accept header in Python web frameworks Route requests based on the Accept header in Python web frameworks flask flask