Convert int to 16 bit unsigned short
Use ctypes.c_ushort
:
>>> import ctypes
>>> word.insert(0, ctypes.c_ushort(0x19c6acc6).value)
>>> word
array('H', [44230])
If NumPy is available then:
>>> numpy.ushort(0x19c6acc6)
44230
The classical way is to extract the relevant bits using a mask:
>>> hex(0x19c6acc6 & 0xffff)
'0xacc6'