partial fixes for python2 to get this working again
don't use the wildly out of date command module
make this work again with  python 2/3
add notes for deprecated function in v3.4+, get the tests working for python 3