[python] How to unnest a nested list