Understand the Console Sample execution model
mainThe Console Sample operates using a single thread (the Python main execution thread) to handle both user input and the sending/receiving of API messages.
Because the main thread is shared, user input commands have a timeout. If a command is not entered within the specified period, the application will block for a few seconds before resuming command acceptance.