Fix travis build errors due to travis python changes