def _item_to_bucket(iterator, item):
 name = item.get('name')
 bucket = Bucket(iterator.client, name)
 bucket._set_properties(item)
 return bucket

def _item_to_bucket ( iterator , item ) : name = item . get ( 'name' ) bucket = Bucket ( iterator . client , name ) bucket . _set_properties ( item ) return bucket
convert a json bucket to the native object .