how-to-check-a-function-is-truly-callable-with-arguments-in-python