fix "zero length field name" error in python2.6

should fixes #1