You should add the bug number to NEWS (but someone can do that when landing it).
Also, the single-letter variable names are icky, though coming up with 3 different username variables is a pain.
Other than that, this looks good to me, but I'm not smart enough to know if it really is. It's great that you were able to leverage Paste and Trac to avoid writing any unnecessary code. :)
You should add the bug number to NEWS (but someone can do that when landing it).
Also, the single-letter variable names are icky, though coming up with 3 different username variables is a pain.
Other than that, this looks good to me, but I'm not smart enough to know if it really is. It's great that you were able to leverage Paste and Trac to avoid writing any unnecessary code. :)