code: def renew_connection(password):
      
      with Controller.from_port(port=9051) as controller:
          controller.authenticate(password=password)
          controller.signal(Signal.NEWNYM)
docs: Renews TOR session
  
      :param password: new password