Improved interpreter.py

Removed debug code.
Improved code style with PEP8.
Added unittests for interpreter.py.