How to open a website using python?

I want to open a site using python but, i want to check if this page is open then it will just refresh this page.
Here is my code:

import webbrowser

webbrowser.open('https://www.google.com/')

Every time I run my code is, just opening page with creating new tab of my default browser. But I want to check it, if it’s not open then it will open, otherwise refresh the current tab.
Is that possible?