Python Selenium Function Key Stuck