minimal multithreaded cython example