Unfortunately, we don't have Python bindings for MAGMA. However, the CPU interface is straight-forward C code, so you should be able to build wrappers without too much difficulty, e.g., using SWIG (http://www.swig.org/
). Just be aware that matrices are stored in column-wise order. If you use numpy to create matrices, you have to pass array( ) an extra flag to force it to use column-wise format.