Issue 879: fix python3 failure.