strm vs stream in different python versions