Here are a few changes for Python3 support for ERP5 made by @aurel and Bryton that I have prepared for master branch to have less changes in zope4py2 and zope4py3 branches and to avoid this work to be lost.
/cc @jm @jerome
This will create a new commit in order to revert the existing changes.