nanshe/nanshe_viewer.py: Memory fix for enumeration.