fixes bug: numpy.uint8 does not operate on lists in older python versions