Split the extension from a pathname. Extension is everything from the last dot to the end, ignoring leading dots. Returns "(root, ext)"; ext may be empty.
>>> splitext('bar') ('bar', '')
os.path/splitext
splitext