def _normalize_info(dev):
 for (sect, val) in dev.items():
  if (len(val) == 1):
   dev[sect] = val[0]
 return dev

def _normalize_info ( dev ) : for ( sect , val ) in dev . items ( ) : if ( len ( val ) == 1 ) : dev [ sect ] = val [ 0 ] return dev
replace list with only one element to the value of the element .