Fix not specifying key as the argument being passed.
Fix returning the result of a side-effecting method (list.remove returns None).