First thanks for the prompt to look at the LAPACK site, which I had overlooked up till now (or maybe had a quick look and rapidly moved on).
Having recently spent a couple of weeks trying to get F2PY (Fortran to Python) running, after changing from Python 2 to 3, I can certainly empathise with the reluctance to use another language, nonetheless I think it's worth you having a look at the Scipy documentation, as their linear algebra routines seem to be simply a front end to LAPACK, and the manual does have a fair bit of background information on matrix formats. The link below may (or may not) be of some use:
Regarding the specific question, the comments for dsgesv that you provided refer to:
A (input/output) DOUBLE PRECISION array,dimension (LDA,N)
* On entry, the N-by-N coefficient matrix A.
and
B (input) DOUBLE PRECISION array, dimension (LDB,NRHS)
* The N-by-NRHS right hand side matrix B.
So it doesn't seem to say anything about A and B being in upper triangular form, or am I missing something?
Doug Jenkins
Interactive Design Services