def render_atom(children):
 if (len(children) == 3):
  return LatexRendered(children[1].latex, parens=children[0].latex, tall=children[1].tall)
 else:
  return children[0]

def render_atom ( children ) : if ( len ( children ) == 3 ) : return LatexRendered ( children [ 1 ] . latex , parens = children [ 0 ] . latex , tall = children [ 1 ] . tall ) else : return children [ 0 ]
properly handle parens .