NodeDb = []
Node = MyStruct(None, '', '', '', '', -1, 0)
for id in range(4):
    NodeDb.append(Node)
NodeDb[2] = NodeDb[2]._replace(ThreadName='T2', Mnemonic='ABCD', IpAddr=
    '192.0.1.2', IpGW='192.0.1.3', Status=0, Mode=2)
print(NodeDb)
Python list of named tuples, replacing attributes