Completed the FPP translation to python