def ostypecode(x):
 s = ''
 for i in range(4):
  (x, c) = divmod(x, 256)
  s = (chr(c) + s)
 return s

def ostypecode ( x ) : s = '' for i in range ( 4 ) : ( x , c ) = divmod ( x , 256 ) s = ( chr ( c ) + s ) return s
convert a long int to the 4-character code it really is .