datelist=re.findall('[0-9]{2}[A-Z]{3}[0-9]{4}', rawlist) misses out on weekly expiries like 2Jan2020.
datelist.sort(key = lambda date: datetime.datetime.strptime(date, '%d%b%Y')) can preserve chronological order.
I couldn't get the UI to start, but that could be because I was working with virtualenv