Fix code generation on 32 bit operational systems.
Python types are different on 32 and 64 bit systems for equal values.
e.g: The value 0xffffffff is considered long on 32 bit systems and
int on 64 bit systems.