def splitext_no_dot ( filename ) : name , ext = os . path . splitext ( filename ) ext = ext . lower ( ) return name , ext . strip ( '.' )
python separate filename and extension
Wrap os . path . splitext to return the name and the extension without the . ( e . g . csv instead of . csv )
def splitext_no_dot(filename):
    """
    Wrap os.path.splitext to return the name and the extension
    without the '.' (e.g., csv instead of .csv)
    """
    name, ext = os.path.splitext(filename)
    ext = ext.lower()
    return name, ext.strip('.')