Added __version__ support in the generator and filelike support in the generated lexer