Prevent problem when using a time limit in python

Previously when the time limit was before the earliest date,
the script crashed. Now it will only check the actual lines.