def sep_join(values):
    """Prepare parameters that take multiple values
    See https://www.wikidata.org/w/api.php?action=help&modules=main#main/datatypes
    """
    if any((('|' in set(v)) for v in values)):
        # we need to use an INFORMATION SEPARATOR ONE (U+001F) character as delimiter
        SEPARATOR = '\u001F'
        return SEPARATOR + SEPARATOR.join(values)
    else:
        return '|'.join(values)