def tolist(arg):
    """ convert argument to list """
    if isinstance(arg, list):
        return arg
    if isinstance(arg, tuple):
        return list(arg)
    if isinstance(arg, str):
        return [arg]
    raise TypeError("require string, tuple or list")