AFAIK invalid syntax means there is no command registered with "run_electrum" by phyton3. It means python can't find any program/file/command named "run_electrum" from your working directory, installed module or path variable. I don't think this is dependency issues.
That's not what it means. It means the python interpreter he has does not think the code is correct. That's because he's using an older version of python as NeuroticFish pointed out above. He needs to update to python 3.6 or stick with electrum 3.2.3.