This is not really a support mailing list, it is intended for ideas about modifying the python language or its libraries.
However
after a quick look, the line tt = arr2 is not creating a copy of
array2. It creates a new name bound to the same underlying object, an
alias if you will. You will need to use some sort of copy function (such
as np.copy) if you want an independent array.