Import of code from http://code.google.com/p/proxpy/