Performing Calculations with Variables in Python