Fixed streaming for PY3 - Fixes #342

Also fixed Dockerfile 

@shin- 

Should be able to close #336 also