#NEWLINE# def create_account_obj( search_string , content_string , condition ) : #NEWLINE# #INDENT# from cybox.objects.account_object import Account #NEWLINE# account = Account ( ) #NEWLINE# attrmap = { #NEWLINE# #INDENT# 'UserItem/description' : 'description' , #NEWLINE# 'UserItem/disabled' : 'disabled' , #NEWLINE# 'UserItem/lockedout' : 'locked_out' , #NEWLINE# #UNINDENT# } #NEWLINE# if ( search_string in attrmap ) : #NEWLINE# #INDENT# set_field ( account , attrmap [ search_string ] , content_string , condition ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return Object ( content_string )