gmail_user = input('Please enter your Gmail username: ')
savout = os.dup(1)
os.close(1)
os.open(os.devnull, os.O_RDWR)
try:
    webbrowser.open(whatever)
finally:
    os.dup2(savout, 1)
How can I disable the webbrowser message in python?