(record, now=None)
initialize or extend expiry to after now
    in increments of a month
initialize or extend expiry to after now
    in increments of a month
initialize or extend expiry to after now in increments of a month
def bump_expiry(record, now=None):
    """
    initialize or extend expiry to after now
    in increments of a month

    """
    now = now or datetime.utcnow()
    record.expires = record.expires or now

    while record.expires <= now:
        record.expires += timedelta(days=30)
def bump_expiry ( record , now = None ) : now = now or datetime . utcnow ( ) record . expires = record . expires or now while record . expires <= now : record . expires += timedelta ( days = 30 )