def get_popularity(obj, region=None):
 return _property_value_by_region(obj, region=region, property='popularity')

def get_popularity ( obj , region = None ) : return _property_value_by_region ( obj , region = region , property = 'popularity' )
returns popularity value for the given obj to use in elasticsearch .