phdunboundlocalerror local variable referenced before assignment python errorShare on FacebookShare on Twitter212