prepare for pypy multithreading