Python implementation of Olshausen & Field Sparsenet Algorithm