Python Matrix Determinant Without Numpy