pdns.py issue fix