Merge pull request #1 from lilydjwg/py2-support

refine Python 2 support
fix
minor change for Python 2