fix ValueError when use python2.6

I'm Debian user at work :)