Update wallet.py

update demurrage accounting