Make script Python 3 compatible
Add gui version of the script with a file chooser