qd.py and latency.py