fix python 2.7
add tox support