Python implementation of Laplacian score