Useful Python snippets written by me or found on Internet