fix compatibility for python3