You need to run calculator.py – it will import adder.py – but adder.py can be run independently too. See my post regarding the use of if __name__ == "main":
The code above is stored in pastebin. Click the links; then download the code from the separate pastebin pages.