The objective is to copy the lower triangle to upper triangle. Based on the suggestion produced in the OP, the following code was drafted.
import numpy as np