Update wallet.py

cleaned up demurrage function