tests: port inline extension in test for beautifygraph to Python 3

Authored by durin42.

Description

tests: port inline extension in test for beautifygraph to Python 3

test-glog-beautifygraph.t now passes on Python 3.

Differential Revision: https://phab.mercurial-scm.org/D4247