Скопируйте 2 -й массив в Python
y = [row[:] for row in x]
Unusual Unicorn
y = [row[:] for row in x]
from copy import copy, deepcopy
y = deepcopy(x)