support Python3
Use script local variable.
prefer Python 3 over Python 2
Merge pull request #9 from methane/py3

support Python3