def setKeyFn(fn):
    """
    set the prefix dictionary key function

    Note: This is not multithread/multiprocess safe. It should only be set before anything starts setting the keys.
    """
    global __name_key_fn
    __name_key_fn = fn
