make wallet.get_private_keys more general