[python] Take the content of a list and append it to another list