def nextmonth(month,year):
    """return YYYYMMDD str for first day of next month, given month, year as strings"""
    month = int(month)+1
    if month==13:
        month=1
        year = str(int(year)+1)
    month = '{0:02d}'.format(month)
    return year+month+'01'