some small fixes / cleanups for dns detector

plus some minor setup.py cleanups

plus fixed tests now