Python code snippets.