how to handle javascript alerts in selenium using python,driver.switch_to_alert().accept()