Port OnionPerf to Python 3

Currently OnionPerf is written in Python 2, which is soon to be end-of-life.

(Copied from https://github.com/robgjansen/onionperf/issues/41)