def get_nearest_cities(self): nearest_cities = Utils.extract_contents_of_nested_brackets( self.payload_location) if len(nearest_cities) < 1: tm_logger.warn( 'Couldnt extract nearest_cities from payload: {}'.format( self.payload_location)) nearest_cities = ['NULL'] return nearest_cities