Fix errors in script horton-esp-gen.py