def get_long_be(s):
 return ((((ord(s[0]) << 24) | (ord(s[1]) << 16)) | (ord(s[2]) << 8)) | ord(s[3]))

def get_long_be ( s ) : return ( ( ( ( ord ( s [ 0 ] ) << 24 ) | ( ord ( s [ 1 ] ) << 16 ) ) | ( ord ( s [ 2 ] ) << 8 ) ) | ord ( s [ 3 ] ) )
convert a 4-char value to integer .