Fixed calibrate.py