def METHOD_NAME(self, evtype, fileno, real_cb, real_tb, mac):
    # this is stupid: pyevent won't call a callback unless it's a function,
    # so we have to force it to be one here
    if isinstance(real_cb, types.BuiltinMethodType):
        def cb(_d):
            real_cb(_d)
    else:
        cb = real_cb
    if evtype is READ:
        evt = event.read(fileno, cb, fileno)
    elif evtype is WRITE:
        evt = event.write(fileno, cb, fileno)
    return super(Hub, self).METHOD_NAME(evtype, fileno, evt, real_tb, mac)