Make namedtype creation compatible with older Python versions.