I have tried various commands like
driver.switch_to_window(\"_blank\")
or
driver.switch_to_window(None)
b
Look at this question. Seems like the library doesn't support tab management atm.
But the second-highest rated answer does offer a solution. I think you can easily translate it to Python.