code: def uploadPackages(self, directory):        
          
          files_to_upload_dict = {}
          files_to_upload_list = [ f for f in listdir(directory) if isfile(join(directory,f)) ]
          self.logger.debug("uploadPackages(" + "{})".format(directory))
          #print "Files to upload:"
          for index in range(len(files_to_upload_list)):
              self.logger.info(files_to_upload_list[index])
              self.uploadFileToIM (directory, files_to_upload_list[index], files_to_upload_list[index])
docs: Not working. Am not able ot figure out how to upload. IT return status 200OK with this code but do not store the files.
          In tomcat.log (IM) there?s a complaint about character encoding whn uploading file. Not sure how to rectiy it in requests post call though