Fix. use global open instead _M.open in ftp.put