remove nonlocal keyword for compatibility with python2.7x
remove nonlocal keyword for compatibility with python2.7.x
Merge pull request #1 from janeabernethy/master

python 2.7.x compatibility