Uses signal
Changed to dict when filling the template.
Removed distutils.spawn