Fixes for Python 3+ compatibility
Added PyEmitter to test requirements