ClientMetadataInstance crashes on Python 3.9
class ClientMetadataInstance(NamedTuple, Generic[T]) is invalid in Python 3.9: TypeError: Multiple inheritance with NamedTuple is not supported.
This was working in 3.7 and might be working again in the future.