There’s nothing wrong with the Terminal, but iTerm2 https://www.iterm2.com/
xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
brew install python
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
Use #!/usr/bin/env python for scripts
IPython provides a better shell and the Jupyter notebook.
Alternatively, for data analysis, install Anaconda