try to rewrite Garbage_Collector.c by Python