def is_valid_definition(params, language):
 return ((not exclude_bracket(params.get('enabled', BH_ENABLED), params.get('language_filter', BH_LANG_FILTER), params.get('language_list', BH_LANG_LIST), language)) and (params.get('open', None) is not None) and (params.get('close', None) is not None))

def is_valid_definition ( params , language ) : return ( ( not exclude_bracket ( params . get ( 'enabled' , BH_ENABLED ) , params . get ( 'language_filter' , BH_LANG_FILTER ) , params . get ( 'language_list' , BH_LANG_LIST ) , language ) ) and ( params . get ( 'open' , None ) is not None ) and ( params . get ( 'close' , None ) is not None ) )
ensure bracket definition should be and can be loaded .