def __validate__(config):
 if (not isinstance(config, dict)):
  return (False, 'Configuration for btmp beacon must be a list of dictionaries.')
 return (True, 'Valid beacon configuration')

def __validate__ ( config ) : if ( not isinstance ( config , dict ) ) : return ( False , 'Configuration for btmp beacon must be a list of dictionaries.' ) return ( True , 'Valid beacon configuration' )
validate the beacon configuration .