I'm trying to run an stream example on python 2.7, but I'm having a lot of problems, The code was made to Python 3?