def flatten_list(list):
    """
    | Flattens a list of lists.
    | Based on:
    | http://stackoverflow.com/questions/457215/comprehension-for-flattening-a-sequence-of-sequences/5330178#5330178
    """
    
    #print 'List: {0}'.format(list)
    result = []
    extend = result.extend
    for l in list:
        extend(l)
        
    return result