Update interpreter.py

Made the code structure a little closer to the visitor design pattern...