some bug fixes to omnical2npz.py