Pure-python LAPACK translation