updated Sim_AvgQs.py