fix interface.py so that it will run on python 2.x