Upgrade python/apitools to v0.5.31 am: f864ef688b am: 9b6a69032d am: 89ea80b037

Change-Id: I8dbb44ff2341be18d30fbb0bff4356e792da1dd7