interpreter in python solutions