Chinese Remainder Theorem Python