def format_score(scr, test):
 md = testMeta[test]
 if md:
  return '{0}\n{1}'.format(scr, md)
 else:
  return scr

def format_score ( scr , test ) : md = testMeta [ test ] if md : return '{0}\n{1}' . format ( scr , md ) else : return scr
build up the score labels for the right y-axis by first appending a carriage return to each string and then tacking on the appropriate meta information .