flask request for custom functions, allowed_method ....