updated readline to use the decode method. the script is now python2/3 compliant. note that I tested with python3.3.