def parseRgbString(rgbString):
    """ Parses string in the form 'rgb(x,y,z)' where x, y and z are integers.
        
        Returns (x, y, z) tuple.
    """
    return [int(s) for s in rgbString[4:-1].split(',', 3)]