use QPlainTextEdit instead of QTextEdit
fix syntax of redeem_script
store output type explicitly in tuple
Add tests to the wallet.py module.

This increases test coverage a lot.