Python thread now construct condition-variable-based command queue.