def trim_leading_lines(lines):
 lines = list(lines)
 while (lines and (not lines[0])):
  lines.pop(0)
 return lines

def trim_leading_lines ( lines ) : lines = list ( lines ) while ( lines and ( not lines [ 0 ] ) ) : lines . pop ( 0 ) return lines
trim leading blank lines .