def get_tuple(my_dict):
    """
    Returns a tuple of the "first" item in a dict

    Useful for converting dicts with only one item 
    """
    try:
        return next(iter(my_dict.items()))
    except StopIteration:
        return None, None
