better support for python in build scripts