http://docs.python.org/2/library/os.path.html#os.path.splitext