Python implementation of the SpeedyFx algorithm