def get_message_string_arg(self, arg):
    if isinstance(arg, list):
        argstr = stringifyUserArguments(arg)
    elif isinstance(arg, dict):
        argstr = stringifyUserArguments(arg)
    elif isinstance(arg, str):
        argstr = arg
    elif isinstance(arg, int):
        argstr = str(arg)
    else:
        raise InvalidArguments('Function accepts only strings, integers, lists and lists thereof.')
    return argstr
def get_message_string_arg(self, arg):
    if isinstance(arg, list):
        argstr = stringifyUserArguments(arg)
    elif isinstance(arg, dict):
        argstr = stringifyUserArguments(arg)
    elif isinstance(arg, str):
        argstr = arg
    elif isinstance(arg, int):
        argstr = str(arg)
    else:
        raise InvalidArguments('Function accepts only strings, integers, lists and lists thereof.')
    return argstr