can we add a `if six.callable(handler)` block to not break backwards compatibility + depreciation message?