import numpy as np
keys_data = ['100101010101']
keys_data2 = []
for k in keys_data:
keys0 = []
for i in k:
keys0.append(int(k[int(i)]))
keys = np.reshape(keys0, (6, 1, 2))
print(keys)
keys_data2.append(keys.tolist())
print(keys_data2)