Gcd Logic In Python Using Math Package