Added the handlers parameter and a CraftsHandler.

Added a handler parameter so that each result can be processed by some Python
code.