since you have gone to the python `make` (good idea, btw!), maybe you would want to use the `os` module to derive some of these values. For example, take a look at: 

    import os
    os.environ.keys()
    os.environ['LIBRARY_PATH']

etc.