Each concrete class has an attribute _fields which gives the names of all child nodes.
ast/AST._fields
AST._fields