Author: yifei / Created: May 30, 2017, 8:59 p.m. / Modified: May 30, 2017, 9 p.m. / Edit
to simulate nonlocal in python 2
1. use an array: varialbe = [value] 2. use a class