pygrid multithreading working