[fix] PY3 compatibility