Fix "ValueError: too many values to unpack" for python 2.6