memory leak fix + php/js/python transition to class based generator
6 files changed