def will_expire_soon(expiry):
 soon = (timeutils.utcnow() + datetime.timedelta(seconds=30))
 return (expiry < soon)

def will_expire_soon ( expiry ) : soon = ( timeutils . utcnow ( ) + datetime . timedelta ( seconds = 30 ) ) return ( expiry < soon )
determines if expiration is about to occur .