Handles fractions correctly and many pep8 conformity