A collection of code snippets in python that might be useful for others.