python: function style
i try to write a parser
need to learn the generator