Sounds like you want to have your application use its own Python rather than the one provided by the operating system. These steps have worked for us:
1) tar the Python directory you want to use. /usr/lib64/python2.7 or equivalent. 2) untar the directory into whatever directory works for you. 3) Prepend that directory onto PATH, or use absolute path when invoking the interpreter 4) Set PYTHONHOME to point to that directory.
Assuming /myapp/python is where you want to place Python, your bash script looks like:
tar xvf mypython.tar /myapp/python/
export PATH=/myapp/python/:$PATH
export PYTHONHOME=/myapp/python