py3: fix Python 3 compatibility on xmlchemy