Added the "error" method to interface.py