Move the multiprocessing worker out of the segment method to enable this to work on Windows
Merge pull request #21 from aliceh75/20-windows-multiprocessing-issue

Move the multiprocessing worker out of the segment method to enable this to work on Windows