import uuid from datetime import datetime def now_iso(): return datetime.utcnow().isoformat() + "Z" def new_id(): return str(uuid.uuid4())[:8]