Kill off usage of locals() in the filter_scheduler.

We decided we don't like this syntax, so I figured I'd clean up this
file while I was playing with it.

Change-Id: I861b9bfcb98782a2f0b46ac5bff09664a13d339c
Merge "Kill off usage of locals() in the filter_scheduler."