fix wcdb generator to work in python2.6