swagger helpers for webapp2