Update transaction.py