phdpython global variable unboundlocalerror local variable referenced before assignmentShare on FacebookShare on Twitter408