def parse_tuple(my_str):
    """
    Parse input parameters which can be tuples.
    """
    # remove any kind of parenthesis
    for c in (")", "]", "}"):
        my_str = my_str.rstrip(c)
    for c in ("(", "[", "{"):
        my_str = my_str.lstrip(c)
    # split tuple elements if any
    str_list = my_str.split(",")
    # remove trailing whitespaces
    str_list = [s.rstrip() for s in str_list]
    str_list = [s.lstrip() for s in str_list]
    return str_list