64 bit issue solved.

Using c_int32 insted of c_long (different length in 32 and 64 bit!)