def muse(field):
 out = sh('muse')
 for line in out.split('\n'):
  if line.startswith(field):
   break
 else:
  raise ValueError('line not found')
 return int(line.split()[1])

def muse ( field ) : out = sh ( 'muse' ) for line in out . split ( '\n' ) : if line . startswith ( field ) : break else : raise ValueError ( 'line not found' ) return int ( line . split ( ) [ 1 ] )
thin wrapper around muse cmdline utility .