talert.py -- bug fixes for problems found by Vik

Should now skip powerons, and I hope it won't exceed the array size now