Forward-port to Python3

r? @typesupply

BTW I see some unmerged changes in the [Network graph](https://github.com/typesupply/defcon/network), have you had a look at them?