def equal_para(struct):
    """compares the number of '(' and ')' and makes sure they're equal.
    Return bool True is ok and False is not a valid structure."""
    if struct.count('(') == struct.count(')'):
        return True
    else:
        return False