Fix Genshi for py3