def _normalize_handler_method(method):
 return method.lower().replace('-', '_')

def _normalize_handler_method ( method ) : return method . lower ( ) . replace ( '-' , '_' )
transforms an http method into a valid python identifier .