test: suppoert py2.6 and py2.7