def arraySize(inputArray):
    """Returns the size of a list-formatted array.
    
    The size of inputArray is returned as a tuple e.g. (x, y, z, ...), where:
        x -- number of rows
        y -- number of columns
        z -- further dimension within each cell
    """
    
    sizeTuple = ()
    while isinstance(inputArray, list): #drills down array until encounters item that's not a list
        sizeTuple += (len(inputArray),)
        try:
            inputArray = list.__getitem__(inputArray, 0) #avoid calling __getitem__ of array b/c it may have multi-dimensional index behavior
        except IndexError: #array is empty, but still has a size
            inputArray = None
    return sizeTuple