Updated ai/utils.py
Added tests for population calibration