compatible with py2
Merge pull request #17 from eleme/compat_queue

compatible with py2