C++/Python producer consumer question | Hacker News Reader