updated the python interface to work with python 2 or 3
updated the python interface to work with python 2 or 3