patch inspect.isfunction() in pyregr tests to include CyFunction