It looks like there's a couple lines of incompatible syntax keeping this library from working in Python 3. Would a PR to fix this be reviewed?