[python] How to automate browsing using python?