Fix ord error on Python 3