Update measure.py