Python Share Variables Between Functions Calculator