Fixed an incompatability issue with python 2.6. Subprocess has been replace with os.popen.