fix for older cython version on lxplus
it did not understand that structures could be defined later on
in the pxd file, so needed to reorganize..