Added nonlocal as a python3 specific keyword. Added print as a python 2 specific keyword.