Add some Python 3 compatibility

I haven't tested everything, but at least Travis-CI -builds pass for both Python 2.7 and Python 3.4 (without extras, because zptlint is not yet Python 3 compatible).