Convert cython objects to normal python objects before/after passing them to processes. This fixes multithreaded mode.
Added ability to shuffle dev set between iterations