python snippets for work with org-mode files in a shell