class Solution(object):
    def reverseWords(self, s):
        """
        :type s: str
        :rtype: str
        """
        return ' '.join([x[::-1] for x in s.split(' ')])

Add py solution for 557. Reverse Words in a String III