Added interface.py for functions to be used from the web application.