Not sure I get it, two lines above you return an error if len(r.PostForm) != 1
Why do a for now ?