aa = [[(55736,)], [(55739,)], [(55740,), (55801,)], [(55748,)], [(55783,), (55786,), (55787,), (55788,)], [(55817,), (55821,)], [(55818,)]]
def getelement(aa):
for elem in aa:
if type(elem)==type([]):
for element in getelement(elem):
yield element
else:yield elem
for elem in getelement(aa):print(elem)(55736,)
(55739,)
(55740,)
(55801,)
(55748,)
(55783,)
(55786,)
(55787,)
(55788,)
(55817,)
(55821,)
(55818,)
for b in aa:
for bb in b:
print(bb)