Added reboot at functionality in sw.py