class Solution(object):
    def detectCapitalUse(self, word):
        """
        :type word: str
        :rtype: bool
        """
        if word.islower():
            return True
        if word.isupper():
            return True
        if word[1:].islower():
            return True
        return False

Add py solution for 520. Detect Capital
Add py solution for 520. Detect Capital

520. Detect Capital: https://leetcode.com/problems/detect-capital/
