Python scripting snippets and shortcuts