Malformed header from CGI script: Traceback (most recent call last): File "/dokumenty/teryt.py", line 1, in layer = iface.activeLayer() NameError: name 'iface' is not defined