I forgot to mention, I'm using Python 2.5.x. I can't use Python 3 unfortunately, the 3rd party application uses Py2.5.x internally, so I have to limit the functionality to that version.