compatible with python-3.3
Merge pull request #4 from erning/python3

compatible with python-3.3