random collection of py snippets