fix "Preferences broken on Mac"

Hi,
I have fixed this issue https://github.com/chatch/pinyin-toolkit/issues/7

The problem was with assert list.pop(). On Mac OS X python is working in mode when assert expressions are not computed.