Translation of landpos.aml to python