From here you can download a collection of example scripts and data files. Some show how to perform an entire analysis. Read the scripts and try to understand how they work.
here
Python Scripts
Indentation Error Example: