def getOutputFileName(originalFileName, outputExtension, index=None):
 return (os.path.splitext(originalFileName)[0] + outputExtension)

def getOutputFileName ( originalFileName , outputExtension , index = None ) : return ( os . path . splitext ( originalFileName ) [ 0 ] + outputExtension )
return a filename which is the same as c{originalfilename} except for the extension .