I haven't solved the issue yet, but if I do, I'll push up a review.
AttributeError: 'method' object has no attribute '__yaql_function__'
which turned out to be a Python 3 issue and I've got a review up here for it https://review.opendev.org/#/c/760470/