def run_psea(fname):
 os.system(('psea ' + fname))
 last = fname.split('/')[(-1)]
 base = last.split('.')[0]
 return (base + '.sea')

def run_psea ( fname ) : os . system ( ( 'psea ' + fname ) ) last = fname . split ( '/' ) [ ( - 1 ) ] base = last . split ( '.' ) [ 0 ] return ( base + '.sea' )
run psea and return output filename .