dm.py: remove print statements