Remove unused import statements
Remove obsolete code
Add suport for multiprocessing
Merge branch 'multiprocessing'

Add support for multiprocessing