Update transactions.py