title: Tkinter GUI App issue with webbrowser module
body: <p>I am trying to make a simple GUI app which open programs and websites using web browser python module but when try to search it does not open the web browser however it opens apps and can anyone help me out?code:</p>
  
  <pre><code>import tkinter as tk 
  import webbrowser
  import os
  
  def todo(TODO):
      try:
          if TODO== 'pycharm':
              os.startfile("C:\\Program Files\\JetBrains\\PyCharm Community Edition 2019.3.3\\bin\\pycharm64.exe")
          elif TODO== 'sublime':
              os.startfile("C:\\Program Files\\Sublime Text 3\\sublime_text.exe")
          elif '.py'or '.txt' or '.csv' or '.ppt' in TODO:
              os.open('{}'.format(TODO,os.O_RDWR|os.O_CREAT))
              os.startfile('{}'.format(TODO))
          elif 'search' in TODO:
              url='http://google.com/search?q='+TODO.replace('search','')
              webbrowser.open(url)
          elif 'facebook' in TODO:
              webbrowser.open('https://www.facebook.com/')
          elif 'instagram' in TODO:
              webbrowser.open('https://www.instagram.com/')
          else:
              pass
      except :
          pass
  
  root= tk.Tk()
  root.title('To-Do GUI')
  
  
  entry = tk.Entry(root, font=40, width=35)
  entry.grid(row=0,column=0)
  entry.focus()
  
  button = tk.Button(root, text="GO", font=40, command=lambda: todo(entry.get()))
  button.grid(row=0 ,column=4)
  
  root.mainloop()
  </code></pre>