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