raise NotImplementedError, 'emit must be implemented') which is invalid in Python 3. In Python 3, the correct syntax would be raise NotImplementedError('emit must be implemented').logging/__init__.pylogging package (not the standard library one) that's likely written for Python 2