better multiprocessing and multithreading in python
