def my_isclose(a, b, rel_tol=1e-09, abs_tol=0.0):
    """
    Test if a and b are close enough to consider equal.
    
    This function is essentially the same as the math.isclose function which
    was added in Python 3.5 but is created here to increase compatibility across
    all Python 3 versions.
    """
    return abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)