def handle_index_syntax(key):
    """
    Turn a key tuple into Julia slicing and indexing syntax

    Parameters
    ----------
    key: String, integer, slice or a tuple of these
    """
    if isinstance(key, tuple):
        indexes = []
        for index in key:
            if index == slice(None):
                indexes += ':'
            elif isinstance(index, str):
                indexes += [f'"{index}"']
            elif isinstance(index, int):
                indexes += [str(index+1)]
            else:
                raise IndexError('Index not must be string, integer or ":"')
        index_string = ','.join(indexes)

    elif key == slice(None):
        index_string = ':'
    elif isinstance(key, str):
        index_string = f'"{key}"'
    elif isinstance(key, int):
        index_string = key+1
    else:
        raise IndexError('Index not must be string, integer or ":"')

    return index_string