def splitext_plus(f):
base, ext = os.path.splitext(f)<EOL>if ext in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>base, ext2 = os.path.splitext(base)<EOL>ext = ext2 + ext<EOL><DEDENT>return base, ext<EOL>
Split on file extensions, allowing for zipped extensions.
    copy from bcbio