More Python 3 fixes, also introduce --disable-tgen command