Ah, looks like BaseHTTPRequestHandler is an old-style class (that's a shame). I guess there's nothing we can do from our end.

It sounds like you found a workaround, but here's a SO post with a couple of solutions in case you're interested:

http://stackoverflow.com/a/6634912