def polygon_to_mobject(self, polygon_element):
    path_string = polygon_element.getAttribute('points')
    for digit in string.digits:
        path_string = path_string.replace((' ' + digit), (' L' + digit))
    path_string = ('M' + path_string)
    return self.path_string_to_mobject(path_string)
def polygon_to_mobject(self, polygon_element):
    path_string = polygon_element.getAttribute('points')
    for digit in string.digits:
        path_string = path_string.replace((' ' + digit), (' L' + digit))
    path_string = ('M' + path_string)
    return self.path_string_to_mobject(path_string)