You should use "python2" to replace every "python" in the "hda-analyzer.py" file since Arch Linux use "python" to stand for "python3" instead of "python2".
Also you need to run the command:sudo python2 /path/hda-analyzer.py
to execute the python script.