[nfb] Add workaround for python2.6