Properly handle bootstrap script in seed and lxc modules.

This is related to be605bc81a43879c15f5b026f5d2529a9b008c7e and #14865.
Do we really need to shell out to do this? If this is being done "locally", python should be enough. And by not shelling out we should get some increased performance.