Add Euclid's algorithm in Python