use tox for testing multiple python versions
add six compatibility library
fix imports for python 3 compat.
simplify test program
fix readline for python 3