Various code snippets in python.