Python3Android is a nuget package specifically designed to run python code in a MAUI environment targeting android devices.
Since it's full python, it works well with 'complex scripts'
(I use it to run mercurial on android so it certainly handles non trivial python code)