add README.md
update .gitignore
add stream wrapper for python 2.6 backward compatibility