Fix some Python brainos in testlib (except e is not valid form).

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>