make print statement a function, this make the code working with python 2 and 3
update README and comments in python source file