import cheese

def report_cheese(name):
    print "Found cheese:", name

cheese.find(report_cheese)



syntax highlighted by Code2HTML, v. 0.9.1