compatibility for python v3 and english correction