Trying to get EPG (ATSC with zap2xml) working with TVheadend

I got everything working with TVheadend but I can’t for the life of me get the EPG to work. I tried to install zap2xml using the python and perl scripts and I get errors like this:

File “zap2xml.py”, line 7

^
SyntaxError: invalid syntax

osmc@osmc:~/Downloads$ perl zap2xml.pl
Bareword found where operator expected at zap2xml.pl line 1, near “zap2xml”

Finally I tried installing the addon via edit4ever’s github and I can’t find “tv_grab_zap2xml” in my internal grabber settings via the TVheadend web gui nor are addon settings in Kodi to configure the directory.