You may want to go ahead and get your passport/passport card renewals done now - the current REAL ID waiver (issued in June) is good through October 10 (including federal buildings, etc). Should hopefully be plenty of time for your renewals to be processed, barring any major surprises.
http://www.maine.gov/sos/news/2017/realid61517.html