def makeKW(rowClass, args):
 kw = {}
 for i in range(0, len(args)):
  columnName = rowClass.dbColumns[i][0].lower()
  for attr in rowClass.rowColumns:
   if (attr.lower() == columnName):
    kw[attr] = args[i]
    break
 return kw

def makeKW ( rowClass , args ) : kw = { } for i in range ( 0 , len ( args ) ) : columnName = rowClass . dbColumns [ i ] [ 0 ] . lower ( ) for attr in rowClass . rowColumns : if ( attr . lower ( ) == columnName ) : kw [ attr ] = args [ i ] break return kw
utility method to construct a dictionary for the attributes of an object from set of args .