Running Eliza Chatbot on Mac Terminal

I am running Python3 with the latest Python Launcher on my Mac, the scripts are run on Mac Terminal. It is a chatbot script, sort of Eliza knockoff in Python version. This is what I got from the Mac terminal. Couldn't run it and I used input() instead of raw_input() since this is Python3.

 Desktop/doctor.py'  && echo Exit status: $? && exit 1
 Hello. How are you feeling today?
 > I am fine.
 Traceback (most recent call last):
 File "/Users/Gary/Desktop/doctor.py", line 256, in <module>
 main()
 File "/Users/Gary/Desktop/doctor.py", line 248, in main
 statement = input("> ")
 File "<string>", line 1
 I am fine.
   ^
 SyntaxError: invalid syntax

However, when I run it on repl.it, it works fine. I wonder what is wrong with my mac.. thanks guys