Fix Python syntax style (fix #284)