add py2.6 support