Fixed some bugs and removed the repl() function in ast.py