make globals pass LocalDeclarations and BackEnd

Now that there's no errors anymore when running the python code, we need to fix it to produce the correct C++ output!