def flatten(l):
for el in l:<EOL><INDENT>if _iterable_not_string(el):<EOL><INDENT>for s in flatten(el):<EOL><INDENT>yield s<EOL><DEDENT><DEDENT>else:<EOL><INDENT>yield el<EOL><DEDENT><DEDENT>
Flatten an arbitrarily nested sequence.

Parameters
----------
l : sequence
    The non string sequence to flatten

Notes
-----
This doesn't consider strings sequences.

Returns
-------
flattened : generator