that must be done under protection of the GIL, for reasons explained in new comments.
Attach a file by drag & drop or click to upload