simple expression calculator in Python