def cellValue(row, header, strip=False, nameChars=False, default=None):
    if (header in headerCols):
        iCol = headerCols[header]
        if (iCol < len(row)):
            v = xlValue(row[iCol])
            if (strip and isinstance(v, str)):
                v = v.strip()
            if (nameChars and isinstance(v, str)):
                v = ''.join((c for c in v if (c.isalnum() or (c in ('.', '_', '-')))))
            if (v is None):
                return default
            return v
    return default
def cellValue(row, header, strip=False, nameChars=False, default=None):
    if (header in headerCols):
        iCol = headerCols[header]
        if (iCol < len(row)):
            v = xlValue(row[iCol])
            if (strip and isinstance(v, str)):
                v = v.strip()
            if (nameChars and isinstance(v, str)):
                v = .join((c for c in v if (c.isalnum() or (c in ('.', '_', '-')))))
            if (v is None):
                return default
            return v
    return default