Fix problem with run_qptdmscr.py