Upgrading to just a newer mafia version wasn't enough in my case.
I also had to remove all the snapshot_*.txt files under data/ prior to running the script to get this to work again.
Working OK now with r8985 (most recent version at the time of posting)