Make portable to Python 3.3.