Fix Py31 error with Travis