use python2 and python3 compatible unicode and open functions
fix python2 unicode function
Merge pull request #12 from alanhamlett/master

use python2 and python3 compatible unicode and open functions