[python] Remove extern for python object for now, get __dict__ using Internal.