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

Change-Id: I01049c5595f0c90a2a92f05eb0cc7390f34f06fb