code: def waitForEvent(self, tv=0):
          
          if tv is None:
              tv = 0
          tv_s = int(tv)
          real_tv = libusb1.timeval(tv_s, int((tv - tv_s) * 1000000))
          libusb1.libusb_wait_for_event(self.__context_p, byref(real_tv))
docs: See libusb_wait_for_event doc.