Fix part of py3 compatible 

Fixes unsuccessful tests in `features` and `tools/test-features` on Python 3.4.
The issue.features on Python 3, still not fully fixed, will try to fix them in another pull request.