def flipXYZ(oldXYZ):   # This is an example of a nice Modular function.
    """Flip XY coords of an XYZ coordinate string

    This function inverts the xy coordinates generated by afni's
    3dclust command. It is presently acting as a sort of Helper
    function to getClusterStats function defined below.

    Params:
        oldXYZ -- a string containing the original xyz coordinates
                  oldXYZ == '58 42 8'
    Returns:
        xyz -- a new string with the inverted xy + z coordinates
                xyz == '-58 -42 8'
    """
    coordList = oldXYZ.split()
    x = int(coordList[0]) * -1
    y = int(coordList[1]) * -1
    xyz = ' '.join([str(x), str(y), coordList[2]])
    return xyz