Fix Python 3 compatibility

This fixes py34 tox target.