Docker-style names generator, in Python