Upgrade python/apitools to v0.5.31

Exempt-From-Owner-Approval:
Change-Id: I87e804ff19a93d51d6244f834bceebc32536801e