The string.replace() is deprecated on python 3.x. What is the new way of doing this?
ss = s.replace(s.split()[1], +s.split()[1] + 'gy') # should have no plus after the comma --i.e., ss = s.replace(s.split()[1], s.split()[1] + 'gy')