def __init__(self, driver, channel, *args, **kwargs):
    super(Motor, self).__init__(*args, **kwargs)
    self._driver = driver
    self._motor = self._driver.getMotor(channel)
    atexit.register(self._release)
def __init__(self, driver, channel, *args, **kwargs):
    super(Motor, self).__init__(*args, **kwargs)
    self._driver = driver
    self._motor = self._driver.getMotor(channel)
    atexit.register(self._release)