Added methods for finding Phi in Python