Update Sphinx TikZ extension to support Python 3