python unpack & global variables