As a new Python Programmer, PLEASE AVOID the use of global. Globals may be useful for things like configuration, but for the most part they can cause dangerous side effects if you start to use them as your default programming paradigm. I'd suggest you try a class pattern, or variable assignment pattern.
Class Assignment
class Foo(object):
def __init__(self, a, b, c):
self.a = a
self.b = b
self.c = c
def update(self, a, b, c):
self.a = a
self.b = b
self.c = c
foo = Foo(1,2,3)
foo.update(5,6,7)
print "a: %d, b: %d, c: %d" % (foo.a, foo.b, foo.c)
Variable Assignment
a=1
b=2
c=3
def x():
a_prime = 5
b_prime = 6
c_prime = 7
return a_prime, b_prime, c_prime
a, b, c = x()
print a, b, c
x(and not pass them as parameters). There's no way to do this via parameters, as a parameter conveys only a value - there's absolutely no connection to the variable the value came from.