Some small snippets of random Python I have written