def hanshu(list_args, fillvalue):
my_len = [ len(k) for k in list_args ]
max_num = max( my_len )
result = []
for my_list in list_args:
if len(my_list) < max_num:
for i in range(max_num - len(my_list)):
my_list.append(fillvalue)
result.append(my_list)
return result
my_node_seq = [[1, 2, 3, 4], [5, 6, 7], [8, 9]]
my_seq = hanshu(my_node_seq, 33)