Some handy snippets for Python development