a bugus multithread PYTHON C sample commited for reference