build/python: generatemethodsEx