token.expires is now derived from AccessInfo.expires instead of reading it from the raw token response. The old code was deriving the value from keystoneclient.v2_0.Token which is tightly coupled to V2 token.

AccessInfo class now returns a datetime instead of the raw string. (https://github.com/openstack/python-keystoneclient/blob/master/keystoneclient/access.py#L289 ). This is for both v2 and v3.  With this, we don't need to perform the conversion.