Use a context manager for os.popen and explicitly close a socket.
Attach a file by drag & drop or click to upload