Make syntax Python 3 compatible