Made gc.collect() call conditional to running on pypy.