Python Convert Text To Numpy Function Python Code