import sys
import salome
salome.salome_init()
theStudy = salome.myStudyManager.Open("meshing.hdf")
salome.setCurrentStudy(theStudy)
import GEOM
import geompy
import math
import SALOMEDS
geompy.init_geom(theStudy)
import smesh, SMESH, SALOMEDS
smesh.SetCurrentStudy(theStudy)
import StdMeshers
import NETGENPlugin
meshID = '0:1:2:3'
## Here goes computation magic
sobject = theStudy.FindObjectID(meshID)
print sobject # prints something like <SALOMEDS._objref_SObject instance at 0xb1675f0>
print sobject.GetID() # prints '0:1:2:3' as expected
print sobject.GetIOR() # prints nothing
