@classmethod
def register_native_mapping(cls, type_id, callback):
    """
        Register a function to convert a core foundation data type into its
        equivalent in python

        :param type_id:
            The CFTypeId for the type

        :param callback:
            A callback to pass the CFType object to
        """
    cls._native_map[int(type_id)] = callback
