code: def upload_file(self, remote, local):
          
          file = open(local, 'rb')
          try:
              self.upload(remote, file)
          finally:
              file.close()
docs: Uploads a file
          :param remote: remote file name
          :param local: local file name
          :return: