refine ProxyUtil for migrate to python 3.3