how to unnest a nested list?,"from functools import reduce