nit: string formatting would look nicer in this case: `u"Method '%s' not allowed." % method`