Adding some (hopefully short enough) python snippets

Some additional snippets - no idea if they are basic enough...