make FastI2I.py thread-safe