Flatten hierarchical ports on node side

def _flattenPortsSide(side: List[LNode]) -> List[LNode]:
    """
    Flatten hierarchical ports on node side
    """
    new_side = []
    for i in side:
        for new_p in flattenPort(i):
            new_side.append(new_p)
    return new_side