fix py3.4 int check