Added 404 checking function

Added import re and import datetime.
Added persistant_404 function (lines 16 to 41).
Added call to persistant_404(access) (line48).