from proto9x.usb import usb from proto9x.sensor import factory_reset usb.open() factory_reset()