simplify various.flatten

Simplified the function flatten
as suggested in http://stackoverflow.com/questions/952914/making-a-flat-list-out-of-list-of-lists-in-python