2to3 conversion of python-daemon