Completed stream.py
stream can be conert to node and sml