Strictly triangular matrix for Python