A fraction calculator written in python