def add_line_increment_for_dict(data, lineModified, diference, atLineStart=False):
 def _inner_increment(line):
  if (((not atLineStart) and (line <= lineModified)) or (lineModified == (line + diference))):
   return line
  newLine = (line + diference)
  summary = data.pop(line)
  data[newLine] = summary
  return newLine
 list(map(_inner_increment, list(data.keys())))
 return data

def add_line_increment_for_dict ( data , lineModified , diference , atLineStart = False ) : def _inner_increment ( line ) : if ( ( ( not atLineStart ) and ( line <= lineModified ) ) or ( lineModified == ( line + diference ) ) ) : return line newLine = ( line + diference ) summary = data . pop ( line ) data [ newLine ] = summary return newLine list ( map ( _inner_increment , list ( data . keys ( ) ) ) ) return data
increment the line number of the dict content when needed .