Add ModelBase.primary_key property.
Remove unnecessary reference to inspect(cls).mapper since inspect(cls) == inspect(cls).mapper.