are you running this as an axis usercommand file? I dont know what you are doing but you should still be able to connect to halui pins from a usercommand file
you didn't mention the acrual error so it's hard to know why loadusr python3 failed.
If it is because halui was not loaded yet, there is away to test for that.