callable()

Test whether a symbol points to a function:

In [1]: def a(): pass

In [2]: callable(a)
Out[2]: True