from datetime import datetime


def PyTmYJDtoMD(yr, day):
    """
    Convert julian year-day to month-day

    Parameters
    ----------
    yr: int, year
    day: int, julian day number

    Returns
    -------
    list, [month as int, day as int]
    """

    tt = datetime.strptime('%04d-%03d' % (yr, day), '%Y-%j').timetuple()
    return [tt.tm_mon, tt.tm_mday]