Python Unboundlocalerror Local Variable Os Referenced Before

Python Unboundlocalerror Local Variable Os Referenced Before