def format_options_as_lines(options):
 option_lines = []
 option_fields = str(options).split(',')
 for field in option_fields:
  option_lines.append(str(field).strip('{').strip('}'))
 return option_lines

def format_options_as_lines ( options ) : option_lines = [ ] option_fields = str ( options ) . split ( ',' ) for field in option_fields : option_lines . append ( str ( field ) . strip ( '{' ) . strip ( '}' ) ) return option_lines
format options as a string for log file .