c/fortran library to export numpy arrays