Python code samples