wrong name for ret variable in tests
updated python for loop in darmgen