python 2.7.x compatibility

Removed nonlocal keyword for compatibility with Python 2.7.x. 
Properties that were using nonlocal are now properties of an object "Section"