def split(fn):
    """Return the extension of the provided base file"""
    sf = fn.split('.')
    l = len(sf)
    if l == 1:
        return fn, None
    else:
        ext = sf[-1]
        bn = '.'.join(sf[0:l - 1])
    return bn, ext
