Dear Author,
For compatibility OCCT keeps a part of initial AIS API for asking interactive context to return detected TopoDS_Shape.
You should use API returning detected interactive object (AIS_Shape here should hold original TopoDS_Shape unmodified by locations or so on), selection owner (for handling local selection results) and use other means of object identification when necessary (e.g. custom owner object passed to interactive object using SetOwner()).
Specific issues can be related to either python-occ or existing implementation of AIS_InteractiveContext.
In the case of OCCT related issue I would suggested you to register the issue (with the complete test case and data) in OCCT Mantis Bugtracker which is available via the Collaborative portal - http://dev.opencascade.org/index.php?q=home/get_involved.
If the problem is urgent you may contact us via the Contact Form.
We will try to find a solution/workaround acceptable for you.
--
Best regards,
FSR