Update transaction.py

To avoid infinite loops. :-)