Hamming Code Implementation In Python An Array