#NEWLINE# def __init__( self , custom_gallery_id , name , datetime , account_url , link , tags , item_count = None , items = None ) : #NEWLINE# #INDENT# self . id = custom_gallery_id #NEWLINE# self . name = name #NEWLINE# self . datetime = datetime #NEWLINE# self . account_url = account_url #NEWLINE# self . link = link #NEWLINE# self . tags = tags #NEWLINE# self . item_count = item_count #NEWLINE# self . items = ( [ ( GalleryAlbum ( item ) if item [ 'is_album' ] else GalleryImage ( item ) ) for item in items ] if items else None )