Fix the proxy-disable to work on Python 2/3