Also simplify some code by using some new Python syntax.
Attach a file by drag & drop or click to upload