def ReadTag(buffer, pos):
 start = pos
 while (ord(buffer[pos]) & 128):
  pos += 1
 pos += 1
 return (buffer[start:pos], pos)

def ReadTag ( buffer , pos ) : start = pos while ( ord ( buffer [ pos ] ) & 128 ) : pos += 1 pos += 1 return ( buffer [ start : pos ] , pos )
read a tag from the buffer .