Fix ssh tunnel for Python3

`xrange` was unrecognized.