Keep Python3 compatibility