def _ParseArgs(match):
  """Returns a list of args and dict of kwargs based on match groups."""
  args = list(match.groups())
  kwargs = match.groupdict()
  for arg in kwargs.values():
    args.remove(arg)
  return args, kwargs