some of these things depend on LAPACK, so you will have to catch ImportErrors here
and execute/return only if import succeeds.

See other python examples