[python] Code for Greatest Common Divisor in Python