def read(self, amt=None):
chunk = self._raw_stream.read(amt)<EOL>self._amount_read += len(chunk)<EOL>return chunk<EOL>
Read at most amt bytes from the stream.
        If the amt argument is omitted, read all data.