Selenium Exception Handling Python