code: def open(url):
      
      if sys.platform == 'win32':
          os.startfile(url)
      elif sys.platform == 'darwin':
          subprocess.Popen(['open', url])
      else:
          try:
              subprocess.Popen(['xdg-open', url])
          except OSError:
              import webbrowser
              webbrowser.open(url)
docs: Launches browser depending on os