added input workaround for python 2 and 3 in dnsdre.py