integer types were handled with respect to python version. because long class removed in py3k