py: Remove use of int type in obj.h.

Part of code cleanup, working towards resolving issue #50.