obj and python classes