def setdefaultproxy(proxytype=None, addr=None, port=None, rdns=True,
    username=None, password=None):
    """setdefaultproxy(proxytype, addr[, port[, rdns[, username[, password]]]])
    Sets a default proxy which all further socksocket objects will use,
    unless explicitly changed.
    """
    global _defaultproxy
    _defaultproxy = proxytype, addr, port, rdns, username, password
