>>> import uuid
>>> uuid.uuid4()
UUID('bd65600d-8669-4903-8a14-af88203add38')
>>> str(uuid.uuid4())
'f50ec0b7-f960-400d-91f0-c42a6d44e3d0'
>>> uuid.uuid4().hex
'9fe2c4e93f654fdbb24c02b15259716c'
# uuid docs: https://docs.python.org/3/library/uuid.html
import uuid
print(uuid.uuid4()) # Output: 5d80dd85-da4a-4de1-8fe5-3069bbfd99ee
>>> import uuid
>>> uuid.uuid4().int & (1<<64)-1
9518405196747027403L
>>> uuid.uuid4().int & (1<<64)-1
12558137269921983654L
import uuid; uuid.uuid4()