Support subclassing of Python entities.