Remove nonlocal keyword usage.
Increment version to 0.3