I\'m using the Firefox Webdriver in Python 2.7 on Windows to simulate opening (Ctrl+t) and closing (Ctrl + w) a new tab.
Open new tab:
browser.execute_script("window.open('"+your url+"', '_blank')")
Switch to new tab:
browser.switch_to.window(windows[1])