def preprocess_keylist(keylist, **options):
    """Convert a list of keys to a comma-separated string."""
    if isinstance(keylist, list):
        return ", ".join([str(key) for key in keylist])

    return keylist