code: def parse(cls, payload):
          
          try:
              method, args, ref = payload
          except Exception as exception:
              raise RequestParseError(exception)
          else:
              return method, args, ref
docs: Parse client request