fix #1 on python 2.6 compatibility