beremiz

53b00ff1b2d6
merged in cherry-picked service discovery changes
from c_ext import *