Python code WMTS