Python code wmts