Add tox.ini
Fix 2.7 compatibility issues