Multithreaded code and Pandas