def convert_sequence(s):
    """Convert arguments to qmmlpack format"""
    if isinstance(s, (str, type(None), float, int)):
        return s
    elif len(s) == 1:
        return s[0]
    elif len(s) == 2:
        if isinstance(s[1], (tuple, list)):
            return s[0], s[1]
        else:
            return s[0], (s[1],)
    else:
        return s[0], s[1:]
