Python implementation of Andrew Ng's featuresign sparse coding algorithm