def iterate_flatten(q):
return chain.from_iterable(q)<EOL>
Flatten nested lists.

Useful for flattening one-value tuple rows returned from a database query.

Example::

    [("foo",), ("bar",)] -> ["foo", "bar"]

    [[1,2,3],[4,5,6]] -> [1,2,3,4,5,6]