Fixed all multiprocessing deadlocks and bugs refs #12
Optimized imports