Actually, it was not fitting in the entire line as in : 
result = OperatingSys.add_configtemplate({'id': new_obj['id'],
                                                  'name': os_name[0],
                                                  'config-template': conf_['name']})

Getting pep8 issue . hence to resolve it I had to extract the name