improved append benchmark, now runs in python3