A python (3.5.2) implementation of the work done by Patrick Schafer in https://github.com/patrickzib/SFA