[Python-ideas] Function to unnest for-statements