Update extended_gcd.py

I made the code more efficient and used ternary assignment for the last return of x0 and y0 value