Python Unboundlocalerror Local Variable Context Referenced Before

Python Unboundlocalerror Local Variable Context Referenced Before