mystring = (
    'hi my name is ryan, and i am new to python and would like to learn more')
keyword = 'name'
befor_keyowrd, keyword, after_keyword = mystring.partition('keyword')
Поиск слов после ключевого слова в python