Changed np.dot(csr_matrix, csr_matrix) to csr_matrix.dot(csr_matrix) because np.dot does not support sparse matrix multiplication. This only occured in tpt.py