Smallest Difference Codeforces Solution In Python