def _fread3(fobj):
 (b1, b2, b3) = np.fromfile(fobj, '>u1', 3)
 return (((b1 << 16) + (b2 << 8)) + b3)

def _fread3 ( fobj ) : ( b1 , b2 , b3 ) = np . fromfile ( fobj , '>u1' , 3 ) return ( ( ( b1 << 16 ) + ( b2 << 8 ) ) + b3 )
read 3 bytes and adjust .