<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reboot(self, timeout=1):
 """Reboot the device"""

        namespace = System.getServiceType("reboot")
        uri = self.getControlURL(namespace)

        self.execute(uri, namespace, "Reboot", timeout=timeout)