@staticmethod
def generate_shapes(shapes):
    """
        Generate the shapes for the topology

        :param dict shapes: A dict of converted shapes from the old topology
        :return: dict containing two lists (ellipse, rectangle)
        :rtype: dict
        """
    new_shapes = {'ellipse': [], 'rectangle': []}
    for shape in shapes:
        tmp_shape = {}
        for shape_item in shapes[shape]:
            if shape_item != 'type':
                tmp_shape[shape_item] = shapes[shape][shape_item]
        new_shapes[shapes[shape]['type']].append(tmp_shape)
    return new_shapes
