Most often when calling programs with a shell script it is recommended to make use of env to find it.
Like...
#!/usr/bin/env python3
As in the limitations link above, env is pretty much everywhere, and when it isn't, you're probably going to struggle anyway to make anything portable to those systems.env actually has an in-built flag for ensuring you're passing arguments.
#!/usr/bin/env -S python3 -m http.server 8010