contrast_qual_hist.py perfected =D