Update quality_control.py