import ledger def get_amount(item): print "I found an amount:", item.amount() return 123