updated Sim_AvgQs_HD.py