Add type check for user defined class (check that
a class respects the expected interace)
Check None handle. A None handle is different than
a 0 handle
Call _api.check_XXX methods