fixed pypy bug when too many open files