I worked on not current pydb2 driver version in order to adapt it for django db2 adapter (http://code.djangoproject.com/ticket/6995) and some conversion problem.
Django adapter sends %s as paramstype, this is replaced with ?.
I had problem of conversion decimal values (returned from db2 as string) to double. Finally I "solved" that in c module.
The patches are not perfect, but they work at my place ;).
Instead of sending diff I send 2 main files db2.py and _db2_module.c (my signature is ulr1).
(Suggestion: numeric/decimal -> python decimal and vice versa, date/datetime/time -> python datetime classes).
db2.py and _db2_module.c