Experiments with python multithreading programming