Fix messages.dat reader.py for darwin/osx

Fix a small error which was causing this script to fail.