Update stream.py