The proper way to check if something is callable is isinstance(obj, collections.Callable)