import re
spoonerize = lambda s:re.sub('([^aeiou]+|.+ )'*3,r'\3\2\1',s,1)
for string in 'plaster man', 'blushing crow', 'litigating more', 'strong wrangler', 'def ghi', 'yew fears':
print(spoonerize(string))
aW1wb3J0IHJlCgpzcG9vbmVyaXplID0gbGFtYmRhIHM6cmUuc3ViKCcoW15hZWlvdV0rfC4rICknKjMscidcM1wyXDEnLHMsMSkKCmZvciBzdHJpbmcgaW4gJ3BsYXN0ZXIgbWFuJywgJ2JsdXNoaW5nIGNyb3cnLCAnbGl0aWdhdGluZyBtb3JlJywgJ3N0cm9uZyB3cmFuZ2xlcicsICdkZWYgZ2hpJywgJ3lldyBmZWFycyc6CglwcmludChzcG9vbmVyaXplKHN0cmluZykp