Python Hadamard matrix generator created