fix wcdb generator to work in python2.6
fix wcdb generator to work in python2.6