would `isinstance(calback, functools.partial)` be better?