FIX: work on python2.6