dumpprivkey -> getprivatekeys
sleep inside for loop, so that gui remains responsive