Added the license. Modifed PyIR -> AST generation so that each
method gets a reference to a generator object that will store
top level defs for example.