add on_ambiguity callback
Merge pull request #12 from mrocklin/ambiguity-keyword

add on_ambiguity callback