Python3 compatibility
Signed-off-by: Ben McIlwain <bmcilwain@ngpvan.com>