correct some code in simplify_fraction.py