Manually check callable() so pylint succeeds