Small change in darmgen.py to be python3 compatible again