Python Selenium Close Window Command Mapping