TME APi example for python (django)