result2 = my_set.get_commands()
for comm in result2:
print(comm.get_name())
# Returns
# command1
# command2
# command3
# command1B
result2 = my_set.get_commands()
for comm in result2:
print(comm.get_name())
# Returns
# command1
# command2
# command3
# command1B