Numpy Setting Array Element With Sequence Alignment Using Dynamic Programming