In python3 we match examples with inspect.isfunction predicate