Added measurephase.py