For a quick rundown of python syntax I wrote this script. Hope that helps.

I also have recommended reading

Other code examples on my github also.