def flattenList(inputList):
    """Flattens shallow nested lists into a single list.
    
    Note that this will only work for nesting that is one level deep.
    """
    outputList = []
    for item in inputList:
        if hasattr(item, '__iter__'): outputList += item
        else: outputList += [item]  #catches case that item is not a list, and doesn't need to be flattened.
    return outputList