code: def _display_stream(normalized_data, stream):
      
      try:
          stream.write(normalized_data['stream'])
      except UnicodeEncodeError:
          stream.write(normalized_data['stream'].encode("utf-8"))
docs: print stream message from docker-py stream.