The python 3 nonlocal keyword marks a variable as one taken from a parent scope, and is similar to the global keyword.