def get_file_from_uri(self, remotepath, localpath, contact_email):
     try:
         self.get(remotepath, localpath)
     except Exception, e:
         # Email error to the concerned authority
         email_transactions().send_mail('*****@*****.**', contact_email, str(e))
         print str(e)
 def send_file_to_uri(self, remote_path, file_name, local_path, contact_email):
     try:
         self.put(local_path, remote_path+file_name)
     except Exception, e:
         # Email error to the concerned authority
         print 'Error sending file to %s' % self._hostname
         print 'Check the credentials/remotepath/localpath/Server URI'
         email_transactions().send_mail('*****@*****.**', contact_email, str(e))
         print str(e)