single-line command to find the process running on port 8000 and kill it:

sudo kill -9 $(sudo lsof -t -i:8000)