Calculate Hadamard Product using Python — Linear Algebra