Start simple http server python

$ python -m SimpleHTTPServer [port]
$ python3 -m http.server [port]

Progress bar with tdqm

from tqdm

trange(i) is a special optimised instance of tqdm(range(i)):

# worse
for i in tqdm(xrange(10**6)):
    pass

# better (according to docs)
for i in trange(10**6):
    pass
Manual
with tqdm(total=100) as pbar:
    for i in range(10):
        pbar.update(10)

Generate UUID

python -c "import uuid; print uuid.uuid4()"