def _ImportSymbols(protobuf, symbols, prefix='SOCKET_'):
 for sym in symbols:
  globals()[sym] = getattr(protobuf, (prefix + sym))

def _ImportSymbols ( protobuf , symbols , prefix = 'SOCKET_' ) : for sym in symbols : globals ( ) [ sym ] = getattr ( protobuf , ( prefix + sym ) )
import symbols defined in a protobuf into the global namespace .