name appended to string '_', as the name of the attribute to get from self object, or if the previous doesnt exist, None. append name to 'add_' use it as the name of the attribute to get from combined object , call the result with an argument:
getattr ( combined , 'add_' + name ) ( getattr ( other , '_' + name , None ) )