Simple snippets for Python