fixed Curl bugs in Sim_AvgQs.py and Sim_AvgQs_HD.py