Python grey level co-occurrence matrix implementation