[ipython] Simplify template
[ipython] Refactor ipe and ipn scripts
[licenses] Refactor license script