#20; generator.py: Added _neigh_template() and inclusion from utils source.