Finds the Phase associated with a given object.
obj (Base) – Can either be a Physics or Algorithm object
phase
GenericPhase
If no Phase object can be found, then an Exception is raised. –