Merging items in a list - Python,"from functools import reduce