Made test_streamline Python3 compatible