Added working-version of stream.py