rw.routing, improved rule sorting (converter type)
fix xrange on py3