no more long in python 3
integer types differ on py3
string_types
xrange
items()
iteritems
no more long