def is_older_than(before, seconds):
 if isinstance(before, basestring):
  before = parse_strtime(before).replace(tzinfo=None)
 return ((utcnow() - before) > datetime.timedelta(seconds=seconds))

def is_older_than ( before , seconds ) : if isinstance ( before , basestring ) : before = parse_strtime ( before ) . replace ( tzinfo = None ) return ( ( utcnow ( ) - before ) > datetime . timedelta ( seconds = seconds ) )
return true if before is older than seconds .