a collection of python code snippets