Support coinstake transactions in wallet.py