Object attributes are not accessible in blocktrans and should be instead bound to local variables using `with` syntax.