A few corrections:
1) You don't need to export PATH multiple times. One is enough.
2) These commands are resetting PATH and annuling all the previous ones:
PATH=$ANDROID_HOME/build-tools
PATH=$ANDROID_HOME/platform-tools
PATH=$ANDROID_HOME/tools
You can do more than one at a time, but don't forget to concatenate with the previous value of PATH.
For example, these three could become
PATH=$ANDROID_HOME/build-tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH
This adds these three directories at the head of the PATH.
If you omit the final :$PATH, then the previous value of PATH is discarded.
3) Same thing here, add :$PATH at the end
# Setting PATH for Appium
PATH="/usr/local/lib/node_modules/appium"
export PATH
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
export PATH
4) These are duplicates, delete one of them.
# Setting PATH for Python 3.9
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.9/bin:${PATH}"
export PATH
# Setting PATH for Python 3.9
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.9/bin:${PATH}"
export PATH