def foo_function(debugger, args, result, dict): print >>result, ("foobar says " + args) return None