[core][py] code clarification: separate specific inner functions from gc engine core