Update DMcapture.py