http://docs.python.org/faq/programming.html
ここの
How do I write a function with output parameters (call by reference)?
の項目でも読むといい

公式のFAQだから