Update qc.py

Add unfinished work