Issues setting up bash autocomplete for Python3 alias

For autocomplete, I've solved this (with another alias, but modified here for python) by adding the following to /etc/bash_completion.d/bash_completion:

if [[ -r /usr/share/bash-completion/completions/python3 ]]; then
    . /usr/share/bash-completion/completions/python3 && complete -F _python python py
fi

I believe this could also be added to .bashrc, but both will be sourced so the result is the same.