Python 3 compatiblity for all but 3.4.0