code: def Conectar(self, cache=None, url="", proxy="", wrapper="", cacert=None, timeout=30):
          "Establecer la conexión a los servidores de la AFIP"
          # llamo al constructor heredado:
          ok = BaseWS.Conectar(self, cache, url, proxy, wrapper, cacert, timeout)
          if False and ok:        
              # corrijo ubicación del servidor (puerto htttp 80 en el WSDL)
              location = self.client.services['LumService']['ports']['LumEndPoint']['location']
              if location.startswith("http://"):
                  print "Corrigiendo WSDL ...", location,
                  location = location.replace("http://", "https://").replace(":80", ":443")
                  self.client.services['LumService']['ports']['LumEndPoint']['location'] = location
                  print location
          return of Conectar(self, cache=None, url="", proxy="", wrapper="", cacert=None, timeout=30):
          "Establecer la conexión a los servidores de la AFIP"
          # llamo al constructor heredado:
          ok = BaseWS.Conectar(self, cache, url, proxy, wrapper, cacert, timeout)
          if False and ok:        
              # corrijo ubicación del servidor (puerto htttp 80 en el WSDL)
              location = self.client.services['LumService']['ports']['LumEndPoint']['location']
              if location.startswith("http://"):
                  print "Corrigiendo WSDL ...", location,
                  location = location.replace("http://", "https://").replace(":80", ":443")
                  self.client.services['LumService']['ports']['LumEndPoint']['location'] = location
                  print location
          return ok
docs: Establecer la conexión a los servidores de la AFIP