It is very common that these numbers are different.
How were the objects created ? When they are loaded/created, the instruction that loads/creates returns this number (handle) of the created object:
x = CreateCube()
print x
How were the objects created ? When they are loaded/created, the instruction that loads/creates returns this number (handle) of the created object:
x = CreateCube()
print x