convenience decorator for returning xml in flask views