def pw(m1, m2):
    """
    Given two lists of lists m1 and m2 of the same size, 
    returns the point-wise multiplication of them, like matrix point-wise multiplication
    """
m = m1[:]
for i in range(len(m)):
    for j in range(len(m[i])):
        m[i][j] = m1[i][j] * m2[i][j]
return m
m = [[1, 2, 3], [4, 5, 6]]
element-wise operations of matrix in python