basic fraction implementation in python