Convert Numpy Array To Structured Array In Python Code For Snake