Some small snippets of reusable python code