TME API snippets. For python (django)