I want to accept a numpy array from python, modify it, and return it. I don\'t mind other solutions. The following code works on numpy 1.14+ but I need to use 1.12. Pleas