Random pieces of Python code I use often...