os.path.basename()

Returns the base part of the pathname.

>>> import os
>>> os.path.basename( '/home/user/temp/file.lis”)
'file.lis'