Would ioport.py help? See: http://www.hare.demon.co.uk/ioport/ioport.html. Its Linux only atm, but it wouldn't be hard to port to Windows. I might even do it myself!