tweaks for travis and py3.x