Rather than abusing the member variables self._priv_key and self._address to determine the MiniWallet mode, save it explicitly instead in the constructor to increase the readability and maintainability of the code.
SEQUENCE_FINAL
import socket
create_confirmed_utxos