def sanitize_meta(meta):
    keys_to_sanitize = []
    for (key, value) in meta.items():
        if (not is_jsonable(value)):
            keys_to_sanitize.append(key)
    if keys_to_sanitize:
        for key in keys_to_sanitize:
            del meta[key]
        meta['__errors'] = ('These keys have been sanitized: ' + ', '.join(keys_to_sanitize))
    return meta
def sanitize_meta(meta):
    keys_to_sanitize = []
    for (key, value) in meta.items():
        if (not is_jsonable(value)):
            keys_to_sanitize.append(key)
    if keys_to_sanitize:
        for key in keys_to_sanitize:
            del meta[key]
        meta['__errors'] = ('These keys have been sanitized: ' + ', '.join(keys_to_sanitize))
    return meta