all the "cdef read_frames_" except "double" were using fortran order. This seemed to be causing some weird transposition of the data.
and the the c file
cython -V 0.19.1