Also clean son unused imports
bitcoin_cli as a global variable in the main __init__.py was creating issues related to http.client.CannotSendRequest: Request-sent and connection re-usage. Define a new connection per request.
Also waits an additional for transactions to be cleaned to be safe