Update streaming.py

Var fix