thesisunboundlocalerror local variable 'output_dir' referenced before assignmentShare on FacebookShare on Twitter357