def get_radius_attribute(p, attribute_name):
    """ Utility function to get an attribute from a tuple
    """
    try:
        return next(value for name, value in p if name == attribute_name)
    except StopIteration:
        return None