Replace iteritems, iterkeys, zip, range/xrange
fix import