s/cons/constraints/
s/_CNT/_COUNT/
Use threading.Lock to protect Variable uniqid