python 2 compatibility (also with the new travis build)