Python Selenium Handling Browser Commands