Update reverse-words-in-a-string.py

use split