change it to iterate over sys.argv[1:]. Suggestion by Gerry Wiener.
Attach a file by drag & drop or click to upload