py: Fix builtin callable so it checks user-defined instances correctly.

Addresses issue #953.