Some code snippets for python.