This is the initial changes to support running ERP5 on python3
ERP5 changes are tracked in erp5!1751 (merged)