[core][py] gc engine: better debugging information