Update chemicalanalysis.py

Fixed bugs with oneQuery for chemical analysis