Reference Global Variable In Function Python Format Float To String