Remove debugging statements from get_object_by_id
Updated get_object_by_id to account for new id syntax in classes