Added some Python snippets

See diffs