Make dvdt_wrapper work with python 2.6