fix on segment fault on 64 bit system. (callable Python object as restype not works since it assume return a integer (32 bit)