Hi,
This link should be a good start up point.
You can use Selenium IDE add-on in Firfox or any other browser to record your selenium steps
and then select File > Export Test Case As > Python 2/ Unittest/ Webdriver. You can use that script and develop/edit from there.
For more on selenium python: http://selenium-python.readthedocs.io/