code: def read_frame(self):
          
          frame_type, channel, size = unpack('>BHI', self._read(7))
          payload = self._read(size)
          ch = ord(self._read(1))
          if ch == 206: # '\xce'
              return frame_type, channel, payload
          else:
              raise Exception('Framing Error, received 0x%02x while expecting 0xce' % ch)
docs: Read an AMQP frame.