Calculator written in Python