Use text mode to let module be compatible with Python 3k
Fixed many typos