multi-threaded Viterbi decoder in Python