import sys

is_py2 = sys.version_info[0] == 2

if is_py2:
	maxint = sys.maxint
	keys_set = lambda d: set(d.keys())
	from itertools import izip_longest as zip_longest
else:
	maxint = sys.maxsize
	keys_set = dict.keys
	from itertools import zip_longest

import sys

is_py2 = sys.version_info[0] == 2

if is_py2:
	keys_set = lambda d: set(d.keys())
else:
	keys_set = dict.keys

Remove unused code from _compat