Your shell probably caches the invocation of python and does not look in PATH again. So, when you called python before port select in the same shell session, you need to clear this cache.
For bash, clear the cache using
hash -r
or simply open a new terminal window.