python threading for nested loops

visit shbcf.ru