move parse and tokenize functions to interpreter obejct and change from print statements to writing to sys.stdout