another error:
(Errno::ECONNREFUSED)
That one means the script couldn't connect to your wallet via RPC. Check that the daemon is running with: -rpcpassword=some-password -rpcport=8332
sorry but..how to luch deamon of PTS-qt? it doesn't have a deamon like bitcoin...