A few speedups
.
Merge branch 'speedups'
added small speedups to newimplgroup_syn.py