Fixes for py3. Remaining issue with grammer feat0.fcfg