python code samples