Can Python Functions Use Global Variables And Equations