class Buyer:
def setup (self, maxprice):
self._maxprice = maxprice
def main (self, kos):
"""Entry point upon arrival at a new KOS."""
broker = kos.broker()
# B4 == Barry's Big Bass Business :-)
seller = broker.lookup('Seller_l.Seller', 'B4')
if seller:
price = seller.price()
print 'Seller wants $ 1 , price,
if price > self._maxprice:
print 'too much!'
else:
print "I'll take it!"
else:
print 'no seller found here'
EFTA00504402