Convert dylandomain.py to python 3

Ran the script through 2to3, to generate python3 code. I don't know what the policy is regarding this, but I can't think that we have too many dependencies on python (sphinx is usable in python3, of course).