def plusnone(a, b):
    """
    Add a and b, returning None if either of them is None
    :param a: The first summand
    :param b: The second summand
    :return: The sum
    """
    if (a is None) or (b is None):
        return None
    return a + b