Switch to alternative update_phi implementation in python and C++. It is again bit-identical.