fix file reading in python 3
Merge pull request #4 from pudo/master

fix file reading in python 3