#!/usr/local/bin/python2 from os.path import splitext print splitext("sa.s/a.g")