'Write a the contents of the parameter "file_content" to the
"remote_filename" file in the remote filesystem.
:param remote_filename: The filename where to write the file_content
:param file_content: The string to write in the remote file
:return: The message to show to the user.'

def write(self, remote_filename, file_content):

    if (not self._transfer_handler):
        try:
            ptf = payload_transfer_factory(self.execute)
            self._transfer_handler = ptf.get_transfer_handler()
        except BaseFrameworkException as e:
            return ('%s' % e)
    if (not self._transfer_handler.can_transfer()):
        return 'Failed    to    transfer,    the    transfer    handler    failed.'
    else:
        msg = 'The    file    transfer    will    take    %s    seconds'
        handler = self._transfer_handler
        estimated_time = handler.estimate_transfer_time(len(file_content))
        om.out.debug((msg % estimated_time))
        self._transfer_handler.transfer(file_content, remote_filename)
        om.out.debug('Finished    file    transfer.')
        return 'File    upload    was    successful.'
