how to append an element of a sublist in python,"[1, 2, 3]"