add = 1
normal = 0
def addToNormal( num ):
normal += num
base.accept( "w", addToNormal, [add] )
I’d recommend to avoid using setattr until you really know what it’s for. Better have a bit more code, but understand what you do in there.
# Usually a function is called using it's name
addToNormal(1)
# because we call a function (base.accept) which will later handle the function call for us we give the function as parameter and the functions parameters in a list [add]
base.accept( "w", addToNormal, [add] )