Adapt pyfa scripts to latest Phobos changes