faffing about with globals and locals

IF IT'S A GLOBAL WHY DOES IT STILL NEED TO BE DEFINED AGAIN IN THE LOCAL
SPACE??? RIDDLE ME THIS PYTHON