compatibility with Python 3
Merge pull request #382 from dliessi/python3-ly-errors

python-ly compatibility with Python 3