Command-line calculator with Python