Comment 34 for bug 1202952

Attaching correct patch file (for #33). This one should work for python2.6 as well.