I've seen a program called Devcon (http://en.kioskea.net/faq/sujet-1886-enable-disable-a-device-from-the-command-line) used for enabling and disabling hardware devices. I want to do the same hopefully with python.
I want to turn the internet connection off with a script. I can already do it with popen('ipconfig /release') but I want something more robust. Is there any modules or library's that allow me access to devices, or will I have to stick with popen()?
Its for my uncle. He wants to kick his daughter off-line so she can do her homework instead of wasting her life on myspace and facebook.