modify to support python3
Merge pull request #4 from ksato9700/python3

Python3 support