nanshe/nanshe_viewer.py: Finally fixed the segmentation fault on Mavericks! Fixes #141.