Add support for >=python-3.3

Tested using `./bin/random 100 | python2.7 diagram.py` and `./bin/random
100 | python3.3 diagram.py`