def _get_existing_regions():
 existing_regions = []
 possible_files = os.listdir(os.path.expanduser('~'))
 for f in possible_files:
  something = re.search('\\.bees\\.(.*)', f)
  (existing_regions.append(something.group(1)) if something else 'no')
 return existing_regions

def _get_existing_regions ( ) : existing_regions = [ ] possible_files = os . listdir ( os . path . expanduser ( '~' ) ) for f in possible_files : something = re . search ( '\\.bees\\.(.*)' , f ) ( existing_regions . append ( something . group ( 1 ) ) if something else 'no' ) return existing_regions
return a list of zone name strings from looking at existing region ~/ .