Python implementation of "MAPPER: PARTIAL CLUSTERING IN MATLAB"