added compatibility with Python 3's queue package
Merge pull request #23 from macro1/py3

Add Python 3 compatability