thesispython unboundlocalerror local variable 'res' referenced before assignmentShare on FacebookShare on Twitter398