get_real_instance() returns deferred polymorphic object
_get_real_instances() skips objects of the same class
PEP 8 cleanups