py3k compatibility

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>