def set_default_proxy(proxy_type=None, addr=None, port=None, rdns=True, username=None, password=None):
 socksocket.default_proxy = (proxy_type, addr, port, rdns, (username.encode() if username else None), (password.encode() if password else None))

def set_default_proxy ( proxy_type = None , addr = None , port = None , rdns = True , username = None , password = None ) : socksocket . default_proxy = ( proxy_type , addr , port , rdns , ( username . encode ( ) if username else None ) , ( password . encode ( ) if password else None ) )
set_default_proxy sets a default proxy which all further socksocket objects will use .