Issue #783: python3 compatible - more test fixed.