minor fix + python generator update