def is_stale(last_updated, lifespan=14):
 if (last_updated is None):
  return True
 expiration_date = (last_updated + datetime.timedelta(days=lifespan))
 return (datetime.datetime.now() > expiration_date)

def is_stale ( last_updated , lifespan = 14 ) : if ( last_updated is None ) : return True expiration_date = ( last_updated + datetime . timedelta ( days = lifespan ) ) return ( datetime . datetime . now ( ) > expiration_date )
last_updated is a datetime .